package online.foxnull2.foxmall.auth.vo;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

@Data
@Accessors(chain = true)
public class UserRegisterVo implements Serializable {

    @NotEmpty(message = "Username can not be empty")
    private String username;

    @NotEmpty(message = "Password can not be empty")
    private String password;

    @NotEmpty(message = "Email can not be empty")
    @Email(message = "Email format must be correct")
    private String email;

    @NotEmpty(message = "Code can not be empty")
    private String code;

}
